.calendar-container {
    background: var(--bg-200);
    border-radius: 8px;
    padding: 15px;
}

/* 日历头部控件样式 */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.calendar-dropdown {
    padding: 5px 10px;
    border: none;
    background: var(--bg-100);
    border-radius: 6px;
    color: var(--text-100);
    font-size: 0.8em;
    cursor: pointer;
}

.calendar-nav {
    display: flex;
    gap: 4px;
}

.calendar-nav button {
    border: none;
    background: none;
    color: var(--text-200);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9em;
}

.today-btn {
    margin-left: auto;
    padding: 5px 12px;
    border: none;
    background: var(--bg-100);
    color: var(--text-100);
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
}

/* 日历主体样式 */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* 星期头部 */
.weekday-header {
    text-align: center;
    padding: 8px 0;
    color: var(--text-200);
    font-size: 0.8em;
}

.weekday-header.weekend {
    color: var(--accent-100);
}

/* 日期单元格样式 */
.calendar-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: var(--bg-100);
    border-radius: 6px;
    cursor: pointer;
}

.calendar-day:hover {
    background: var(--bg-300);
}

/* 日期数字 */
.calendar-day .solar-date {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-100);
}

.reminder-marker {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #F18F01;
    color: white;
    font-size: 0.6em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 农历日期 */
.calendar-day .lunar-date {
    font-size: 0.7em;
    color: var(--text-200);
    margin-top: 2px;
}

/* 今天样式 */
.calendar-day.today {
    background: var(--bg-300);
}

.calendar-day.today::after {
    content: '今';
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.6em;
    color: var(--primary-100);
}

/* 非本月日期 */
.calendar-day.other-month {
    opacity: 0.5;
}

/* 周末样式 */
.calendar-day.weekend .solar-date {
    color: var(--accent-100);
}

/* 节假日样式 */
.calendar-day.holiday .lunar-date {
    color: var(--accent-100);
}

/* 选中日期样式 */
.calendar-day.selected {
    background: var(--primary-100);
}

.calendar-day.selected .solar-date,
.calendar-day.selected .lunar-date {
    color: white;
}

/* 日期详情弹窗 */
.date-detail {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 100;
    min-width: 240px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.notes-section {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.note-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
    margin: 6px 0;
}

.note-item strong {
    color: #2c3e50;
    font-size: 0.9em;
}

.note-content {
    color: #7f8c8d;
    font-size: 0.85em;
    margin: 4px 0 0 0;
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 100px;
    overflow-y: auto;
}

.note-content::-webkit-scrollbar {
    width: 4px;
}

.note-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.calendar-day:hover .date-detail {
    display: block;
}

/* 复选框样式 */
.checkbox-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--bg-100);
    border: 1px solid var(--text-200);
    border-radius: 3px;
}

.checkbox-container input:checked ~ .checkmark {
    background: #96c24e;
    border-color: #96c24e;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* 添加复选框完成状态样式 */
.completed {
    text-decoration: line-through;
    opacity: 0.7;
}
.note-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

/* 节假日放假与补休情况 */
/*上班*/
.work-day {
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: var(--text-200);
    font-size: 0.6em;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*休假*/
.rest-day {
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: #ee3f4d;
    font-size: 0.6em;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.work-all-day {
    
}
.rest-all-day {
    background: #EB33330D;
    color: #ee3f4d  !important;
}
.work-font-color {
    color:  var(--text-200) !important;
}
.rest-font-color {
    color: #ee3f4d !important;
}